package com.alienlab.utils;

import java.io.File;

import java.io.IOException;
import java.util.Timer;
import java.util.TimerTask;

public class NewsXmlTimer {
    public Timer timer = new Timer(); 
    public  void newsTimerStart(int startTime,int processTime){
		  
    	timer.schedule(new Mytask(), startTime, processTime); 
    }

    public  void newsTimerDestory(){
    	if(timer !=null){
    		timer.cancel();
    	}
    }
}
